#include <iostream>
using namespace std;
#define MAX 1000 //宏常量
#include "entity/Contacts.h"
#include "entity/AddressBook.h"

void welcome() {
    cout << "***************************" << endl;
    cout << "*****   1、添加联系人   *****" << endl;
    cout << "*****   2、查找联系人   *****" << endl;
    cout << "*****   3、联系人详情   *****" << endl;
    cout << "*****   4、修改联系人   *****" << endl;
    cout << "*****   5、删除联系人   *****" << endl;
    cout << "*****   6、清空联系人   *****" << endl;
    cout << "*****   0、退出通讯录   *****" << endl;
    cout << "***************************" << endl;
}


/**
 *
 * @return 数字
 */
void addressBookManagement() {
    while (true) {
        welcome();
        cout << "请选择需要的功能：";
        int num;
        cin >> num;
        cout << endl;
        switch (num) {
            case 0:
                cout << "感谢使用" << endl;
                system("pause");
                return;
            case 1:
                break;
            case 2:
                break;
            case 3:
                break;
            case 4:
                break;
            case 5:
                break;
            case 6:
                break;
            default:
                cout << "指令错误，请输入0~6任意数字进行选择" << endl;
                break;
        }
        system("cls");
    }
}


int main() {
    addressBookManagement();
    return 0;
}
